package tjs.study.mini.spring.web;

import tjs.study.mini.spring.AbstractApplicationContext;
import tjs.study.mini.spring.DefaultListableBeanFactory;

/**
 * Created by Nicky.Tang on 2021/9/13 3:52 下午
 *
 * @since 02.12.10
 */
public class GenericApplicationContext extends AbstractApplicationContext {

    private final DefaultListableBeanFactory beanFactory;

    public GenericApplicationContext() {
        this.beanFactory = new DefaultListableBeanFactory();
        AnnotationConfigUtils.registerAnnotationConfigProcessors(this.beanFactory);
    }

    @Override
    public DefaultListableBeanFactory getBeanFactory() {
        return this.beanFactory;
    }

}
